﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Models
{
    /// <summary>
    /// 商品分类
    /// </summary>
    public class Category
    {
        public int Id { get; set; }
        [Display(Name ="类别名称")]
        [Required(ErrorMessage ="{0}必填！")]
        public string Title { get; set; }
        public int ParentId { get; set; }
    }
}
